package com.markerhub.service;

import com.markerhub.Vo.MonthVo;
import com.markerhub.common.lang.Result;
import com.markerhub.dto.Echarts;
import com.markerhub.dto.VisitsRecordDto;
import com.markerhub.entity.VisitsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.security.Principal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MarkerHub
 * @since 2022-03-25
 */
public interface VisitsRecordService extends IService<VisitsRecord> {
   Result insetRecord(VisitsRecordDto visitsRecordDto, MultipartFile multipartFile);
   Result updateRecord(VisitsRecordDto visitsRecordDto, MultipartFile multipartFile, Principal principal);

   int[] getTotle();

   List<Echarts> getYearTotle();

   List<int[]>  getMonthTotle();
}
